﻿function WindowIsLoadStatus(windowhtmlid) {
    var html = $("#" + windowhtmlid).html();
    if (html == "<img src=\"/Content/img/loading.gif\" class=\"loadingimg\">" || html == "<img class=\"loadingimg\" src=\"/Content/img/loading.gif\">") {
        return true;
    }
    return false;
}

function InstallationSupportCategories(api, datas) {
    var chtmls = "";
    var data = datas.Result;
    var activeclass = "typeactive";
    for (var j = 0; j < data.length; j++) {
        chtmls += '<div id="type_' + data[j].Id + '" data-typeid="' + data[j].Id + '" data-categoryCn="' + data[j].Name + '"  class="analyzeHead ' + activeclass + '" onclick="InstallationSupportFeature(\'' + api + '\',\'' + data[j].Name + '\',\'' + data[j].Id + '\',this);"><span>' + data[j].Alias + '</span></div>';
        activeclass = "";
    }
    $(".allPointTypeContent").append(chtmls);

    if (data.length > 0) {
        InstallationSupportFeature(api, data[0].Name, data[0].Id);
    }
}

function InstallationSupportFeature(api, category, pointTypeId,obj) {
    loaddingshow();
    $(".newwindowcontent").html("");
    $.ajax({
        url: api + "/api/analysis/supportfeature/" + $("#BridgeId").val() + "/category/" + category + "",
        success: function (datas) {
            loaddinghide();
            if (datas.Code == 200) {
                var data = datas.Result;
                var htmls = "";
                for (var i = 0; i < data.length; i++) {
                    var weightClass = "";
                    if (data[i].WindowWeightPercentage == 100) {
                        weightClass = "col-lg-12";
                    } else {
                        weightClass = "col-lg-6";
                    }
                    htmls += '<div id="' + data[i].Id + '" class="analyzeDataMonitor ' + weightClass + '"><img src="/Content/img/loading.gif" class="loadingimg" /></div>';
                }
                $(".newwindowcontent").html(htmls);

                for (var j = 0; j < data.length; j++) {
                    var fun = data[j].LoadFunctionName + "('" + data[j].Id + "','" + pointTypeId + "')";
                    eval(fun);
                }

                //绑定当前category的选中样式
                var a = $(".allPointTypeContent").find("span");
                for (var c = 0; c < a.length; c++) {
                    if ($(a[c]).data("categorycn") == category) {
                        $(a[c]).addClass("active");
                    } else {
                        $(a[c]).removeClass("active");
                    }
                }
            }
        },
        error: function(msg) {
            $(".newwindowcontent").html("数据分析：【" + category + "】 数据加载失败，请稍后再试!");
            loaddinghide();
        }
    });
    $(obj).parents(".allPointTypeContent").find(".analyzeHead").removeClass("typeactive");
    $(obj).addClass("typeactive");
}
var timerInterval;
function CloseWindowInfo() {
    //关闭socket
    if (window.ws != undefined)
        window.ws.close();
}

//重车相关window
function LoadVehicleRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVehicleRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadVehicleRealDataTrafficWindowData(1440);
    }
}
function LoadVehicleTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVehicleTrafficWindowData(times), 500);
        });
    } else {
        LoadVehicleTrafficWindowData(times);
    }
}
function LoadHeavyCarStatisticsWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleStatisticsWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHeavyCarStatisticsWindowData(times), 500);
        });
    } else {
        LoadHeavyCarStatisticsWindowData(times);
    }
}
function LoadVehicleTonnageWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleTonnageWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVehicleTonnageWindowData(times), 500);
        });
    } else {
        LoadVehicleTonnageWindowData(times);
    }
}
function LoadVehicleSpeedWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleSpeedWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVehicleSpeedWindowData(times), 500);
        });
    } else {
        LoadVehicleSpeedWindowData(times);
    }
}
function LoadVehicleDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VehicleDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVehicleDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadVehicleDataTableWindowData(times, 1);
    }
}
function LoadTrafficDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TrafficDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTrafficDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadTrafficDataTableWindowData(times, 1);
    }
}
//温度相关window
function LoadTemperatureDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureDataTableWindowData(times, 1), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureDataTableWindowData(times, 1);
    }
}
function LoadTemperatureAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureAllAnalysisWindowData(times), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureAllAnalysisWindowData(times);
    }
}
function LoadTemperatureDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureDetailAnalysisWindowData(times), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureDetailAnalysisWindowData(times);
    }
}
function LoadTemperatureRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureRealDataTrafficWindowData(1440), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureRealDataTrafficWindowData(1440);
    }
}
function LoadTemperatureOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureOnePointMoreTimeDataWindowData(), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureOnePointMoreTimeDataWindowData();
    }
}
function LoadTemperatureAllMoreTimeAnalysisWindow(windowhtmlid) {
    var atimes = $("#StartLoadPreviousWeekTimeValue").val();
    var btimes = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureAllMoreTimeAnalysisWindow", { bridgeId: $("#BridgeId").val(), astartTime: atimes.split('-')[0].replace(" ", ""), bstartTime: btimes.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", "")), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", ""));
    }
}
function LoadTemperatureMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TemperatureMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadTemperatureMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadTemperatureMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//湿度相关window
function LoadHumidityRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadHumidityRealDataTrafficWindowData(1440);
    }
}
function LoadHumidityDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadHumidityDataTableWindowData(times, 1);
    }
}
function LoadHumidityAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadHumidityAllAnalysisWindowData(times);
    }
}
function LoadHumidityDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadHumidityDetailAnalysisWindowData(times);
    }
}
function LoadHumidityOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadHumidityOnePointMoreTimeDataWindowData();
    }
}
function LoadHumidityAllMoreTimeAnalysisWindow(windowhtmlid) {
    var atimes = $("#StartLoadPreviousWeekTimeValue").val();
    var btimes = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityAllMoreTimeAnalysisWindow", { bridgeId: $("#BridgeId").val(), astartTime: atimes.split('-')[0].replace(" ", ""), bstartTime: btimes.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadHumidityAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", ""));
    }
}
function LoadHumidityMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/HumidityMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHumidityMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadHumidityMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//索力相关window
function LoadCableForceRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadCableForceRealDataTrafficWindowData(1440);
    }
}
function LoadCableForceDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadCableForceDataTableWindowData(times, 1);
    }
}
function LoadCableForceAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadCableForceAllAnalysisWindowData(times);
    }
}
function LoadCableForceDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadCableForceDetailAnalysisWindowData(times);
    }
}
function LoadCableForceOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadCableForceOnePointMoreTimeDataWindowData();
    }
}
function LoadCableForceMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadCableForceMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
function LoadCableForceUpstreamAndDownstreamDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceUpstreamAndDownstreamDataWindow", { bridgeId: $("#BridgeId").val(), starttime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceUpstreamAndDownstreamDataWindowData(times), 500);
        });
    } else {
        LoadCableForceUpstreamAndDownstreamDataWindowData(times);
    }
}
//索力加速度相关window
function LoadCableForceAccelerationRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadCableForceAccelerationRealDataTrafficWindowData(1440);
    }
}
function LoadCableForceAccelerationDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadCableForceAccelerationDataTableWindowData(times, 1);
    }
}
function LoadCableForceAccelerationAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadCableForceAccelerationAllAnalysisWindowData(times);
    }
}
function LoadCableForceAccelerationDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadCableForceAccelerationDetailAnalysisWindowData(times);
    }
}
function LoadCableForceAccelerationOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadCableForceAccelerationOnePointMoreTimeDataWindowData();
    }
}
function LoadCableForceAccelerationMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadCableForceAccelerationMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
function LoadCableForceAccelerationUpstreamAndDownstreamDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CableForceAccelerationUpstreamAndDownstreamDataWindow", { bridgeId: $("#BridgeId").val(), starttime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCableForceAccelerationUpstreamAndDownstreamDataWindowData(times), 500);
        });
    } else {
        LoadCableForceAccelerationUpstreamAndDownstreamDataWindowData(times);
    }
}
//应变相关window
function LoadStrainRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadStrainRealDataTrafficWindowData(1440);
    }
}
function LoadStrainDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadStrainDataTableWindowData(times, 1);
    }
}
function LoadStrainAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadStrainAllAnalysisWindowData(times);
    }
}
function LoadStrainDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadStrainDetailAnalysisWindowData(times);
    }
}
function LoadStrainOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadStrainOnePointMoreTimeDataWindowData();
    }
}
function LoadStrainMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/StrainMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadStrainMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadStrainMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//偏移位移相关window
function LoadOffsetDisplacementRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementRealDataTrafficWindowData(1440), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementRealDataTrafficWindowData(1440);
    }
}
function LoadOffsetDisplacementDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementDataTableWindowData(times, 1), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementDataTableWindowData(times, 1);
    }
}
function LoadOffsetDisplacementAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementAllAnalysisWindowData(times), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementAllAnalysisWindowData(times);
    }
}
function LoadOffsetDisplacementDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementDetailAnalysisWindowData(times), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementDetailAnalysisWindowData(times);
    }
}
function LoadOffsetDisplacementOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementOnePointMoreTimeDataWindowData(), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementOnePointMoreTimeDataWindowData();
    }
}
function LoadOffsetDisplacementRegressDataAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementRegressDataAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementRegressDataAnalysisWindowData(times), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementRegressDataAnalysisWindowData(times);
    }
}
function LoadOffsetDisplacementMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/OffsetDisplacementMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            try {
                setTimeout(LoadOffsetDisplacementMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
            } catch (e) {
                console.log(e);
            }
        });
    } else {
        LoadOffsetDisplacementMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//应变相关window
function LoadTiltAngleRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadTiltAngleRealDataTrafficWindowData(1440);
    }
}
function LoadTiltAngleDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadTiltAngleDataTableWindowData(times, 1);
    }
}
function LoadTiltAngleAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadTiltAngleAllAnalysisWindowData(times);
    }
}
function LoadTiltAngleDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadTiltAngleDetailAnalysisWindowData(times);
    }
}
function LoadTiltAngleOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadTiltAngleOnePointMoreTimeDataWindowData();
    }
}
function LoadTiltAngleMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TiltAngleMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTiltAngleMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadTiltAngleMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//裂缝相关window
function LoadCrackRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadCrackRealDataTrafficWindowData(1440);
    }
}
function LoadCrackDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadCrackDataTableWindowData(times, 1);
    }
}
function LoadCrackAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadCrackAllAnalysisWindowData(times);
    }
}
function LoadCrackDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadCrackDetailAnalysisWindowData(times);
    }
}
function LoadCrackOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadCrackOnePointMoreTimeDataWindowData();
    }
}
function LoadCrackMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/CrackMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadCrackMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadCrackMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//空间GPS相关window
function LoadAirspaceGpsDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/AirspaceGpsDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadAirspaceGpsDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadAirspaceGpsDataTableWindowData(times, 1);
    }
} 
function LoadAirspaceGpsRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/AirspaceGpsRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadAirspaceGpsRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadAirspaceGpsRealDataTrafficWindowData(1440);
    }
}
function LoadHistoryDataAnalysisWindow_AirspaceGps(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/AirspaceGpsHistoryDataAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHistoryDataAnalysisWindowData_ArispaceGps(times), 500);
        });
    } else {
        LoadHistoryDataAnalysisWindowData_ArispaceGps(times);
    }
}
function LoadAirspaceGpsMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/AirspaceGpsMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadAirspaceGpsMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadAirspaceGpsMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//振动相关window
function LoadVibrationRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadVibrationRealDataTrafficWindowData(1440);
    }
}
function LoadVibrationDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadVibrationDataTableWindowData(times, 1);
    }
}
function LoadVibrationTimeAreaWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationTimeAreaWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationTimeAreaWindowData(1440), 500);
        });
    } else {
        LoadVibrationTimeAreaWindowData(1440);
    }
}
function LoadVibrationAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadVibrationAllAnalysisWindowData(times);
    }
}
function LoadVibrationDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadVibrationDetailAnalysisWindowData(times);
    }
}
function LoadVibrationOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadVibrationOnePointMoreTimeDataWindowData();
    }
}
function LoadVibrationMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VibrationMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVibrationMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadVibrationMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
function LoadRegressDataAnalysisWindow(windowhtmlid, pointTypeId) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/RegressDataAnalysisWindow", { bridgeId: $("#BridgeId").val(),pointtype:pointTypeId, starttime: times.split('-')[0].replace(" ", ""), endtime: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadRegressDataAnalysisWindowData(times), 500);
        });
    } else {
        LoadRegressDataAnalysisWindowData(times);
    }
}
//挠度相关window
function LoadDeflectionRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadDeflectionRealDataTrafficWindowData(1440);
    }
}
function LoadDeflectionDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadDeflectionDataTableWindowData(times, 1);
    }
}
function LoadDeflectionAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadDeflectionAllAnalysisWindowData(times);
    }
}
function LoadDeflectionDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadDeflectionDetailAnalysisWindowData(times);
    }
}
function LoadDeflectionOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadDeflectionOnePointMoreTimeDataWindowData();
    }
}
function LoadDeflectionMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/DeflectionMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadDeflectionMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadDeflectionMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//塔偏位移相关window
function LoadTowerOffsetRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadTowerOffsetRealDataTrafficWindowData(1440);
    }
}
function LoadTowerOffsetDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadTowerOffsetDataTableWindowData(times, 1);
    }
}
function LoadTowerOffsetAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadTowerOffsetAllAnalysisWindowData(times);
    }
}
function LoadTowerOffsetDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadTowerOffsetDetailAnalysisWindowData(times);
    }
}
function LoadTowerOffsetOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadTowerOffsetOnePointMoreTimeDataWindowData();
    }
}
function LoadTowerOffsetMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/TowerOffsetMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadTowerOffsetMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadTowerOffsetMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}
//风速风向
function LoadWindAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/WindAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadWindAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadWindAllAnalysisWindowData(times);
    }
}
function LoadHistoryDataAnalysisWindow_Wind(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/WindHistoryDataAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadHistoryDataAnalysisWindowData_Wind(times), 500);
        });
    } else {
        LoadHistoryDataAnalysisWindowData_Wind(times);
    }
}
function LoadWindDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/WindDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadWindDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadWindDataTableWindowData(times, 1);
    }
}
function LoadWindDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/WindDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadWindDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadWindDetailAnalysisWindowData(times);
    }
}
//土压力相关window
function LoadSoilPressureRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadSoilPressureRealDataTrafficWindowData(1440);
    }
}
function LoadSoilPressureDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadSoilPressureDataTableWindowData(times, 1);
    }
}
function LoadSoilPressureAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadSoilPressureAllAnalysisWindowData(times);
    }
}
function LoadSoilPressureDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadSoilPressureDetailAnalysisWindowData(times);
    }
}
function LoadSoilPressureOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadSoilPressureOnePointMoreTimeDataWindowData();
    }
}
function LoadSoilPressureAllMoreTimeAnalysisWindow(windowhtmlid) {
    var atimes = $("#StartLoadPreviousWeekTimeValue").val();
    var btimes = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureAllMoreTimeAnalysisWindow", { bridgeId: $("#BridgeId").val(), astartTime: atimes.split('-')[0].replace(" ", ""), bstartTime: btimes.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadSoilPressureAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", ""));
    }
}
function LoadSoilPressureMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/SoilPressureMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadSoilPressureMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadSoilPressureMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}

//图像位移相关window
function LoadVideoDisplacementDisRealDataTrafficWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementRealDataTrafficWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementRealDataTrafficWindowData(1440), 500);
        });
    } else {
        LoadVideoDisplacementRealDataTrafficWindowData(1440);
    }
}
function LoadVideoDisplacementDataTableWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementDataTableWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementDataTableWindowData(times, 1), 500);
        });
    } else {
        LoadVideoDisplacementDataTableWindowData(times, 1);
    }
}
function VideoDisplacementRegressDataAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementRegressDataAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementRegressWindowData(times, 1), 500);
        });
    } else {
        LoadVideoDisplacementRegressWindowData(times, 1);
    }
}
function LoadVideoDisplacementAllAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementAllAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementAllAnalysisWindowData(times), 500);
        });
    } else {
        LoadVideoDisplacementAllAnalysisWindowData(times);
    }
}
function LoadVideoDisplacementDetailAnalysisWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementDetailAnalysisWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementDetailAnalysisWindowData(times), 500);
        });
    } else {
        LoadVideoDisplacementDetailAnalysisWindowData(times);
    }
}
function LoadVideoDisplacementOnePointMoreTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementOnePointMoreTimeDataWindow", { bridgeId: $("#BridgeId").val(), startTime: times.split('-')[0].replace(" ", ""), endTime: times.split('-')[1].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementOnePointMoreTimeDataWindowData(), 500);
        });
    } else {
        LoadVideoDisplacementOnePointMoreTimeDataWindowData();
    }
}
function LoadVideoDisplacementAllMoreTimeAnalysisWindow(windowhtmlid) {
    var atimes = $("#StartLoadPreviousWeekTimeValue").val();
    var btimes = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementAllMoreTimeAnalysisWindow", { bridgeId: $("#BridgeId").val(), astartTime: atimes.split('-')[0].replace(" ", ""), bstartTime: btimes.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadVideoDisplacementAllMoreTimeAnalysisWindowData(atimes.split('-')[0].replace(" ", ""), btimes.split('-')[0].replace(" ", ""));
    }
}
function LoadVideoDisplacementMorePointOneTimeDataWindow(windowhtmlid) {
    var times = $("#StartLoadTimeValue").val();
    if (WindowIsLoadStatus(windowhtmlid)) {
        $.get("/Widgets/VideoDisplacementMorePointOneTimeDataWindow", { bridgeId: $("#BridgeId").val(), time: times.split('-')[0].replace(" ", "") }, function (result) {
            $("#" + windowhtmlid).html(result);
            setTimeout(LoadVideoDisplacementMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", "")), 500);
        });
    } else {
        LoadVideoDisplacementMorePointOneTimeDataWindowData(times.split('-')[0].replace(" ", ""));
    }
}

function formatDateTime(date) {
    var y = date.getFullYear();
    var m = date.getMonth() + 1;
    m = m < 10 ? ('0' + m) : m;
    var d = date.getDate();
    d = d < 10 ? ('0' + d) : d;
    var h = date.getHours();
    h = h < 10 ? ('0' + h) : h;
    var minute = date.getMinutes();
    var second = date.getSeconds();
    minute = minute < 10 ? ('0' + minute) : minute;
    second = second < 10 ? ('0' + second) : second;
    return h + ':' + minute;
};
function timestampToTime(timestamp) {
    var date = new Date(timestamp * 1000),
        Y = date.getFullYear() + '-',
        M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-',
        D = date.getDate() + ' ',
        h = date.getHours() + ':',
        m = date.getMinutes() + ':',
        s = date.getSeconds();
    return Y + M + D + h + m + s;
}

function SaveExcel(timeid, apidomain, type, pointids) {
    var times = $("#"+timeid).val();
    var startTimeSplit = times.split('-')[0].replace(" ", "").split('/'), endTimeSplit = times.split('-')[1].replace(" ", "").split('/');
    var startTime = startTimeSplit[2] + "-" + startTimeSplit[0] + "-" + startTimeSplit[1];
    var endTime = endTimeSplit[2] + "-" + endTimeSplit[0] + "-" + endTimeSplit[1];
    $("#exportData").html("<img src='/content/img/loading.gif' title='数据导出中...'/>");
    var url = apidomain +"/api/analysis/" + type + "/exportexceldata/" + $("#BridgeId").val() + "/" + pointids + "/" + startTime + "/" + endTime;
    $.get(url, function (data) {
        if (data.code === 200) {
            DownloadFile(apidomain + "/" +data.result);
        } else {
            layer.alert(data.Result);
        }
        $("#exportData").html('<a class="ico ico-preview-gray" href="javascript:;" onclick="SaveExcel(\'' + timeid + '\',\'' + apidomain + '\',\'' + type+'\',\'' + pointids+'\')" title="数据导出"></a>');
    });
}
function DownloadFile(url) {
    // 移除旧的节点
    var oldNode = document.querySelector('#g-exportOrder-iframe');
    if (oldNode) {
        document.body.removeChild(document.querySelector('#g-exportOrder-iframe'));
    }
    // 生成新节点，进行下载
    var iframe = document.createElement('iframe');
    iframe.style.display = "none";
    iframe.id = 'g-exportOrder-iframe';
    iframe.src = url;
    document.body.appendChild(iframe);
}

Highcharts.setOptions({ global: { useUTC: false } });